import {request} from '@/utils/request';

export function hotScenicSpot<T>(data?: T) {
    return request({
        url: 'merchant/tkt/client/hot',
        method: 'POST',
        data
    })
}

export function recommendScenicSpot<T>(data?: T) {
    return request({
        url: 'merchant/tkt/client/recommd',
        method: 'POST',
        data
    })
}

/*查询服务商价格*/
export function scenicSpotMiniPrice<T>(data?: T) {
    return request({
        url: 'merchant/price/merchant/min',
        method: 'POST',
        data
    })
}

/*查询产品最低价*/
export function productMiniPrice<T>(data?: T) {
    return request({
        url: 'merchant/price/product/min',
        method: 'POST',
        data
    })
}


// 服务商列表
export function searchScenicSpotList<T>(data?: T) {
    return request({
        url: 'merchant/mer/list',
        method: 'POST',
        data
    })
}

// 热门景区列表
export function searchHotProviderList<T>(data?: T) {
    return request({
        url: 'merchant/mer/pageList',
        method: 'POST',
        data
    })
}

// 人群种类集合
export function crowdTypeList<T>(data?: T) {
    return request({
        url: 'merchant/tkt/client/product/list',
        method: 'POST',
        data,
    })
}

// 产品详情
export function productDetail<T>(data?: T) {
    return request({
        url: 'merchant/tkt/client/product/detail',
        method: 'POST',
        data,
    })
}

// 创建订单
export function createOrder<T>(data?: T) {
    return request({
        url: 'order/tkt/client/create',
        method: 'POST',
        data,
    })
}

// 分时库存集合
export function timeSlotStock<T>(data?: T) {
    return request({
        url: 'merchant/tkt/client/product/stock',
        method: 'POST',
        data,
    })
}




